/* ========== LAYOUT GLOBAL ========== */

body {
    margin: 0;
    overflow: hidden;
    overflow-x: hidden; /* évite scroll horizontal */
}

/* Conteneur principal */
.projet-detail-container {
    display: flex;
    height: calc(100vh - 90px);
}


/* ========== SIDEBAR GAUCHE ========== */

.button-retour {
    padding-left: 10px;
    text-align: left;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
}

.button-suivant {
    margin-left: 300px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
}

.projet-sidebar {
    position: fixed;
    top: 140px;
    left: 0;
    width: 40%;
    height: calc(100vh - 140px);
    background-color: #470B24;
    color: white;
    border: 1px solid #B1BAE1;
    padding-top: 30px;
    padding-right: 50px;
    padding-bottom: 50px;
    padding-left: 25px;
}

.projet-description {
    font-size: 16px;
    margin-top: 35%;
}

.info {
    font-size: 12px;
    padding-top: 12px;  
    
}

/* ========== CONTENU DROITE ========== */

.projet-content {
    margin-left: 40%;
    width: 60%;
    height: calc(100vh - 90px);
    overflow-y: auto; /* seul le côté droit scroll */
    padding: 40px;
    background-color: #ffffff;
}

.projet-content img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 12px;
}

.deux-images {
    display: flex;       /* active le mode flex */
    gap: 20px;           /* espace entre les images */
    margin-bottom: 40px; /* espace sous le bloc */
}

.deux-images img {
    width: 50%;          /* chaque image prend la moitié de la largeur */
    height: auto;
    border-radius: 12px; /* arrondir si tu veux */
}


/* ===================================== */
/* ===== RESPONSIVE PROJET PAGE ======= */
/* ===================================== */

@media screen and (max-width: 1024px) {

    body {
        overflow: auto;
    }

    .header {
        display: none;
    }

    .projet-detail-container {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .projet-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        border: none;
        padding: 40px 20px;
    }

    .projet-description {
        margin-top: 20px;
    }

    .projet-content {
        margin-left: 0 !important;
        width: 100% !important;
        height: auto;
        overflow: visible;
        padding: 20px; /* padding plus propre */
        display: flex;
        flex-direction: column;
        align-items: center; /* centre le contenu */
    }

    .projet-content section {
        width: 100%;
        max-width: 700px; /* largeur élégante centrée */
    }

    .projet-content img {
        width: 100%;
    }

    .deux-images {
        flex-direction: column;
    }

    .deux-images img {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {

    .projet-sidebar {
        padding: 30px 20px;
    }

    .projet-description p {
        font-size: 14px;
    }

    .info {
        font-size: 11px;
    }

    .button-site {
        display: inline-block;
        font-size: 14px;
        padding: 10px 18px;
    }

    .projet-content {
        padding: 20px 15px;
        flex-direction: column;
        align-items: center; /* centre le contenu */

    }

    .projet-content img {
        margin-bottom: 25px;
    }
}